import { Route, BrowserRouter as Router, Switch } from "react-router-dom";
import { Component, lazy } from "react";
import AppMain from "layout/app-main";

const Login = lazy("views/login/login");

export default class AppRoute extends Component {
  render() {
    return (
      <Router>
        <Switch>
          <Route path="/" component={AppMain}></Route>
          <Route exact path="/login" component={Login}></Route>
        </Switch>
      </Router>
    );
  }
}
